package com.llt.enum_util;

public enum ResponseBodyEnum {
    RESPONSE_BODY_ENUM_OK(2000,"成功"),
    RESPONSE_BODY_OTHER(1000,"非法操作"),
    RESPONSE_BODY_USER_FIND(1001,"用户已经存在"),
    RESPONSE_BODY_EMAIL_FIND(1002,"当前用户已经注册过l"),
    RESPONSE_BODY_USER_NOT_FIND(4000,"用户不存在"),
    RESPONSE_BODY_CLASS_ERROR_HAVE(40001,"当前类型已经存在"),
    RESPONSE_BODY_USER_LOGIN_ERROR(40002,"用户-邮箱-密码错误"),
    RESPONSE_BODY_TOKEN_INVALID(40003,"token已经过期需要重新验证"),
    RESPONSE_BODY_TOKEN_ERROR(40004,"无效token"),
    RESPONSE_BODY_CODE_TIMEOUT(40005,"验证码超时"),
    RESPONSE_BODY_CODE_NO_LIKE(40006,"验证码不一样"),
    RESPONSE_BODY_SYSTEM_ERROR(5000,"系统错误稍后重试"),
    RESPONSE_BODY_REDIS_TIME_OUT(50001,"连接服务器超时，请稍后连接");


    private int code;
    private String msg;

    ResponseBodyEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
